/*    */ package com.zimbra.cs.service;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.service.ServiceException.Argument;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class AuthProviderException
/*    */   extends ServiceException
/*    */ {
/*    */   private boolean mCanIgnore;
/*    */   public static final String NO_AUTH_DATA = "authprovider.NO_AUTH_DATA";
/*    */   public static final String NOT_SUPPORTED = "authprovider.NOT_SUPPORTED";
/*    */   public static final String FAILURE = "authprovider.FAILURE";
/*    */   
/*    */   private AuthProviderException(String message, String code, boolean isReceiversFault)
/*    */   {
/* 37 */     super(message, code, isReceiversFault, new ServiceException.Argument[0]);
/* 38 */     setCanIgnore(true);
/*    */   }
/*    */   
/*    */   private AuthProviderException(String message, String code, boolean isReceiversFault, Throwable cause) {
/* 42 */     super(message, code, isReceiversFault, cause, new ServiceException.Argument[0]);
/* 43 */     setCanIgnore(true);
/*    */   }
/*    */   
/*    */   private void setCanIgnore(boolean canIgnore) {
/* 47 */     this.mCanIgnore = canIgnore;
/*    */   }
/*    */   
/*    */   public boolean canIgnore() {
/* 51 */     return this.mCanIgnore;
/*    */   }
/*    */   
/*    */   public static AuthProviderException NO_AUTH_DATA() {
/* 55 */     return new AuthProviderException("no auth token", "authprovider.NO_AUTH_DATA", false, null);
/*    */   }
/*    */   
/*    */   public static AuthProviderException NOT_SUPPORTED() {
/* 59 */     return new AuthProviderException("not suported", "authprovider.NOT_SUPPORTED", false, null);
/*    */   }
/*    */   
/*    */   public static AuthProviderException FAILURE(String message) {
/* 63 */     return new AuthProviderException("failure:" + message, "authprovider.FAILURE", false, null);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/service/AuthProviderException.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */